package com.java.basic.absinterface;

/**
 * The abstract can exist 
 * 		1. non-abstract function
 * 		2. variables
 * The abstract function must be override by the sub-class
 * 
 * <p>
 * 
 *
 * @author <a href="mailto:lysongfei@gmail.com">songfei</a>
 * @version 1.0, 2013-4-28
 */
public abstract class AbstractType {
	private int x ;
	private int y ;
	
	public AbstractType(int x , int y ){
		this.x = x;
		this.y = y;
	}
	
	public abstract int add();
	
	public abstract int subtract();
	
	public int multiplicate(){
		return x * y;
	}
	
	public int division(){
		return x - y;
	}
	
}
